package com.baidu.xiaosu.service;

import com.baidu.xiaosu.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "provider",fallback = DemoImpl.class)
public interface Demo {

    @RequestMapping("/getById/{id}")
    public User getById(@PathVariable("id") String id);

}
